package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 老师（在培训系统老师即学生）上传的视屏（备课视屏）或者文件（备课资料）
 * </p>
 *
 * @author hpiggy
 * @since 2025-08-16
 */
@TableName("train_student_video")
@Data
@ApiModel(value = "TrainStudentVideo对象", description = "老师（在培训系统老师即学生）上传的视屏（备课视屏）或者文件（备课资料）")
public class TrainStudentVideo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("教师备课资料才使用")
    private Long prepareId;

    @ApiModelProperty("校区id")
    private Long schoolId;

    @ApiModelProperty("年份id")
    private Integer yearPart;

    @ApiModelProperty("学期id")
    private Integer quarterNum;

    @ApiModelProperty("对应学生表student的id")
    private Long studentId;

    @ApiModelProperty("课程类型：1精品，2智能，3刷题")
    private Integer lessonType;

    @ApiModelProperty("科目")
    private Long subjectsId;

    @ApiModelProperty("班型")
    private Long classTypeId;

    @ApiModelProperty("年级")
    private Long yearClassId;

    @ApiModelProperty("课次")
    private Integer lessonNum;

    @ApiModelProperty("1正常，2关闭【预留字段，不用处理】")
    private Integer status;

    @ApiModelProperty("1:学生练课视屏，2学生备课资料，3听课视屏,4教师备课资料")
    private Integer videoType;

    @ApiModelProperty("视屏id")
    private String videoId;

    @ApiModelProperty("封面相对路径")
    private String coverPath;

    @ApiModelProperty("视频相对路径或者资料图片路径【作废】")
    private String videoPath;

    @ApiModelProperty("播放外链")
    private String videoUrlPath;

    @ApiModelProperty("添加人")
    private Long createdId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    private Integer deleted;


}
